package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.BaseContestBinding;
import com.ruoyi.system.domain.BaseContestBindingGroup;

import java.util.List;
import java.util.Set;

/**
 * 联赛Mapper接口
 * 
 * @author wangbj
 * @date 2024-04-16
 */
public interface BaseContestBindingGroupMapper extends BaseMapper<BaseContestBindingGroup>
{


    default List<BaseContestBindingGroup> selectByIds(Set<Long> longs){
        LambdaQueryWrapper<BaseContestBindingGroup> wrapper = new LambdaQueryWrapper<>();
        wrapper.in(BaseContestBindingGroup::getId, longs);
        wrapper.orderByAsc(BaseContestBindingGroup::getCreateTime);
        return selectList(wrapper);
    }
}
